﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using GamePlusClassLibrary;

namespace GamePlus
{   
    public partial class Game : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["c"] != null)
                this.Inicializar(int.Parse(Request.QueryString["c"].ToString()));
            else
                this.Inicializar(21);
        }

        private void Inicializar(int id)
        {
            //games objGame = games.Load(id);
            //if (objGame != null)
            //{
            //    lblName.Text = objGame._name;

            //    string sCommands = string.Empty;
                //sCommands += "<li class=\"bdc2\"><img src=\"/images/tmp/control-directions.jpg\"><span class=\"comm\"></span></li>";

                /*
                 			
			<li class="bdc2"><img runat="server" id="imgcmd2" src="/images/tmp/control-mouse2.jpg" alt=""><span runat="server" id="spncmd2" class="comm">Atirar</span></li>
			<li class="bdc2"><img runat="server" id="imgcmd3" src="/images/tmp/control-u.jpg" alt=""><span runat="server" id="spncmd3" class="comm">Soltar magia</span></li>
			<li class="bdc2"><img runat="server" id="imgcmd4" src="/images/tmp/control-space.jpg" alt=""><span runat="server" id="spncmd4" class="comm">Nitro</span></li>
			<li class="bdc2"><img runat="server" id="imgcmd5" src="/images/tmp/control-enter.jpg" alt=""><span runat="server" id="spncmd5" class="comm">Dar enter</span></li>
                 */

            //    ulCommand.InnerHtml = sCommands;

            //    divdescription.InnerHtml = "<p>" + objGame._description + "</p>";
            //}
        }
    }
}